home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / f90 / spacing.z / spacing
Encoding:
Text File  |  2002-10-03  |  3.1 KB  |  86 lines

  1. SPACING(3I)                                           Last changed: 4-13-99
  2.  
  3.  
  4. NNAAMMEE
  5.      SSPPAACCIINNGG - Returns the absolute spacing of real model numbers near the
  6.      argument value
  7.  
  8. SSYYNNOOPPSSIISS
  9.      SSPPAACCIINNGG (([XX==]_x))
  10.  
  11. IIMMPPLLEEMMEENNTTAATTIIOONN
  12.      UNICOS, UNICOS/mk, IRIX systems
  13.  
  14.      CF90, MIPSpro 7 Fortran 90
  15.  
  16. SSTTAANNDDAARRDDSS
  17.      Fortran
  18.  
  19. DDEESSCCRRIIPPTTIIOONN
  20.      The SSPPAACCIINNGG intrinsic function returns the absolute spacing of real
  21.      model numbers near the argument value.  It accepts the following
  22.      argument:
  23.  
  24.      _x         Must be of type real
  25.  
  26.      SSPPAACCIINNGG is an elemental function.  The name of this intrinsic cannot
  27.      be passed as an argument.
  28.  
  29. NNOOTTEESS
  30.      This routine is implemented on CRAY T90 systems that support IEEE
  31.      arithmetic by calls to scalar-only library routines.
  32.  
  33. RREETTUURRNN VVAALLUUEESS
  34.      The result type and type parameter are the same as _x.
  35.                                _e-_p
  36.      The result has the value _b   , where _b, _e, and _p are as defined in the
  37.      real number model, provided this result is within range.  If not, the
  38.      result is the same as that of TTIINNYY (_x).  For more information on the
  39.      real number model, see the MMOODDEELLSS(3I) man page.
  40.  
  41. EEXXAAMMPPLLEESS
  42.      Example 1:  A CRAY C90 system returns the following values for the
  43.      SSPPAACCIINNGG intrinsic function:
  44.  
  45.           SPACING(3.0)= 2.8421709430404E-14
  46.           SPACING(3.0_4)= 2.384185791015625E-7
  47.           SPACING(3.0_8)= 2.8421709430404E-14
  48.           SPACING(3.0_16)= 1.009741958682895E-28
  49.  
  50.      The first is default type real, and the others are defined.
  51.  
  52.      Example 2:  An IRIX system returns the following values for the
  53.      SSPPAACCIINNGG intrinsic function:
  54.  
  55.           SPACING(3.0)= 2.384185791E-7
  56.           SPACING(3.0_4)= 2.384185791E-7
  57.           SPACING(3.0_8)= 4.44089209850062616E-16
  58.           SPACING(3.0_16)= 2.46519032881566189191165176650870697E-32
  59.  
  60.      The first is default type real, and the others are defined.
  61.  
  62.      Example 3:  A UNICOS/mk system returns the following values for the
  63.      SSPPAACCIINNGG intrinsic function:
  64.  
  65.           SPACING(3.0)= 4.44089209850062616E-16
  66.           SPACING(3.0_4)= 2.384185791015625E-7
  67.           SPACING(3.0_8)= 4.44089209850062616E-16
  68.           SPACING(3.0_16)= 4.44089209850062616E-16
  69.  
  70.      Example 4:  A CRAY T90 system that supports IEEE floating-point
  71.      arithmetic returns the following values for the SSPPAACCIINNGG intrinsic
  72.      function:
  73.  
  74.           SPACING(3.0)= 4.44089209850062616E-16
  75.           SPACING(3.0_4)= 4.44089209850062616E-16
  76.           SPACING(3.0_8)= 4.44089209850062616E-16
  77.           SPACING(3.0_16)= 3.85185988877447171E-34
  78.  
  79.      Note that there is no KKIINNDD==44 value and that default is KKIINNDD==88.
  80.  
  81. SSEEEE AALLSSOO
  82.      MMOODDEELLSS(3I)
  83.  
  84.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
  85.      man page.
  86.